#pragma once
#include <cppunit/extensions/HelperMacros.h>
#include "VarTable.h"

class TestVarTable : public CPPUNIT_NS::TestFixture {
	CPPUNIT_TEST_SUITE(TestVarTable);
	CPPUNIT_TEST(testAddVar);
	CPPUNIT_TEST(testAddVarNodeID);
	CPPUNIT_TEST(testGetIndex);
	CPPUNIT_TEST(testGetVarName);
	CPPUNIT_TEST(testGetStmts);
	CPPUNIT_TEST(testGetNodeIDs);
	CPPUNIT_TEST_SUITE_END();
private:
	VarTable table;
public:
	void setUp();
	void tearDown();

	void testAddVar();
	void testAddVarNodeID();
	void testGetIndex();
	void testGetVarName();
	void testGetStmts();
	void testGetNodeIDs();
};
